package com.microservice.postservice.client;

import com.microservice.commonutils.R;
import com.microservice.commonutils.userVo.UserInfoVo;
import org.springframework.stereotype.Component;

@Component
public class UserInfoFeignClient  implements  UserInfoClient{
    @Override
    public R getAll() {
        return R.error().message("获取信息出错了");
    }

    @Override
    public UserInfoVo getUserInfoById(String id) {

        UserInfoVo userInfoVo = new UserInfoVo();
        userInfoVo.setNickname("未知用户");
        userInfoVo.setAge(0);

        return userInfoVo;
    }
}
